// pages/test/test.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    "newGoodsData": [
      {
        "imgUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
        "name": "哈哈",
        "price": 10,
        "privilegePrice": 20,
        "discount": 8.9,
      }
    ],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      loadingMoreHidden: true,
      goods: [{
        afterSale: "0,1,2",
        categoryId: 1875,
        commission: 0,
        commissionType: 0,
        dateAdd: "2020-05-22 13:33:11",
        dateUpdate: "2020-07-02 17:27:20",
        fxType: 2,
        gotScore: 0,
        gotScoreType: 0,
        hidden: 0,
        id: 435060,
        kanjia: false,
        kanjiaPrice: 0,
        limitation: false,
        logisticsId: 386,
        maxCoupons: 1,
        miaosha: false,
        minBuyNumber: 1,
        minPrice: 700,
        minScore: 0,
        name: "WiFi云标签机 FP-N20W",
        numberFav: 17,
        numberGoodReputation: 4,
        numberOrders: 4,
        numberSells: 4,
        originalPrice: 700,
        paixu: 0,
        pic: "https://dcdn.it120.cc/2020/05/22/83618213-99b6-42ce-a672-becf466aa515.png",
        pingtuan: false,
        pingtuanPrice: 0,
        recommendStatus: 1,
        recommendStatusStr: "推荐",
        sellEnd: false,
        sellStart: true,
        shopId: 0,
        status: 0,
        statusStr: "上架",
        storeAlert: false,
        stores: 9995,
        stores0Unsale: false,
        type: 0,
        userId: 951,
        vetStatus: 1,
        views: 3803,
        weight: 0,
      }, {
        afterSale: "0,1,2",
        categoryId: 1875,
        characteristic: "养成刷牙好习惯 保护牙齿",
        commission: 0,
        commissionType: 0,
        dateAdd: "2019-12-06 11:58:20",
        dateUpdate: "2020-07-02 17:26:19",
        fxType: 2,
        gotScore: 0,
        gotScoreType: 0,
        hidden: 0,
        id: 235853,
        kanjia: false,
        kanjiaPrice: 0,
        limitation: false,
        logisticsId: 22992,
        maxCoupons: 1,
        miaosha: false,
        minBuyNumber: 1,
        minPrice: 9.9,
        minScore: 0,
        name: "3分钟沙漏「儿童刷牙计时器」",
        numberFav: 46,
        numberGoodReputation: 8,
        numberOrders: 16,
        numberSells: 16,
        originalPrice: 12.96,
        paixu: 0,
        pic: "https://dcdn.it120.cc/2019/12/06/ebf49ac6-4521-4bcc-92fd-8bbbd4131167.jpg",
        pingtuan: false,
        pingtuanPrice: 0,
        propertyIds: ",869,871,",
        recommendStatus: 0,
        recommendStatusStr: "普通",
        sellEnd: false,
        sellStart: true,
        shopId: 6040,
        status: 0,
        statusStr: "上架",
        storeAlert: false,
        stores: 999987,
        stores0Unsale: false,
        type: 0,
        unit: "个",
        userId: 951,
        vetStatus: 1,
        views: 18022,
        weight: 1.5,
      },
      {
        afterSale: "0,1,2",
        categoryId: 1875,
        commission: 0,
        commissionType: 0,
        dateAdd: "2020-05-22 13:33:11",
        dateUpdate: "2020-07-02 17:27:20",
        fxType: 2,
        gotScore: 0,
        gotScoreType: 0,
        hidden: 0,
        id: 435060,
        kanjia: false,
        kanjiaPrice: 0,
        limitation: false,
        logisticsId: 386,
        maxCoupons: 1,
        miaosha: false,
        minBuyNumber: 1,
        minPrice: 700,
        minScore: 0,
        name: "WiFi云标签机 FP-N20W",
        numberFav: 17,
        numberGoodReputation: 4,
        numberOrders: 4,
        numberSells: 4,
        originalPrice: 700,
        paixu: 0,
        pic: "https://dcdn.it120.cc/2020/05/22/83618213-99b6-42ce-a672-becf466aa515.png",
        pingtuan: false,
        pingtuanPrice: 0,
        recommendStatus: 1,
        recommendStatusStr: "推荐",
        sellEnd: false,
        sellStart: true,
        shopId: 0,
        status: 0,
        statusStr: "上架",
        storeAlert: false,
        stores: 9995,
        stores0Unsale: false,
        type: 0,
        userId: 951,
        vetStatus: 1,
        views: 3803,
        weight: 0,
      }
      ],
    });
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})